//
//  SQMessageTableViewCell.m
//  energy
//
//  Created by 苏青 on 2021/7/27.
//

#import "SQMessageTableViewCell.h"

#import "SQMessageModel.h"

#import "NSString+NCDate.h"

@implementation SQMessageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.view_bg SQCornerRadius:W(5)];
}

+(CGFloat)cellHeight:(BaseModel *)model{
    return W(100);
}
-(void)setModel:(BaseModel<BaseCellModelProtocol> *)model{
    SQMessageModelData * dataModel = model;
    self.lab_time.text = [NSString formateDateToDay:[dataModel.m_date substringWithRange:NSMakeRange(6,13)]];
    self.lab_title.text = dataModel.m_title;
    self.lab_content.text = dataModel.m_content;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
